package com.wealth.sms.service;

import com.wealth.sms.entity.MessageRecord;

import iaas.service.IBaseService;


public interface IMessageRecordService extends IBaseService<MessageRecord> {
	
	
	
	//计算当前时间和最新一条短信记录的时间差,单位是秒
	public int calculateInterval(Long corpid, String mobile) throws Exception;
	
	//判断是否,在发送最小间隔内
	public boolean isMinimumInterval(Long corpid, String mobile) throws Exception;
	
	//判断是否,达到预警线
	public boolean isReachWaringLine(Long corpid) throws Exception;
	
}
